module App::View
    class Testwin < Qt::Widget
        def initialize
            super()
            layout = Qt::VBoxLayout.new
            @line = Qt::LineEdit.new
            layout.addWidget @line
            @buttonbox = Qt::DialogButtonBox.new
            @buttonbox.addButton Qt::DialogButtonBox::Ok
            @buttonbox.addButton Qt::DialogButtonBox::Cancel
            layout.addWidget @buttonbox

            setLayout layout
        end
    end
end
